import _http from '@/utils/http'

export default {
    getSmsCode(params, loading, headers) {
        return _http('post', {
            url: '/ums/sms/getSmsCode',
            apiName: '获取短信验证码',
        }, params, loading, headers)
    },
    checkSmsCode(params, loading, headers) {
        return _http('post', {
            url: '/ums/sms/checkSmsCode',
            apiName: '校验短信验证码',
        }, params, loading, headers)
    },
    uploadImg(params, loading, headers) {
        return _http('post', {
            url: '/ums/file/upload/img',
            apiName: '图片上传公共方法',
        }, params, loading, headers)
    },
    livingCheckWeb(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/sign/livingCheck/web',
            apiName: 'WEB实名授权申请',
        }, params, loading, headers)
    },
    livingResult(params, loading, headers) {
        return _http('post', {
            url: '/ums/user/sign/livingResult',
            apiName: '查询实名授权结果',
        }, params, loading, headers)
    },
    webShop(params, loading, headers) {
        return _http('post', {
            url: '/ums/register/web/shop',
            apiName: '/ums/register/web/shop',
        }, params, loading, headers)
    },
    companyLogin(params, loading, headers) {
        return _http('post', {
            url: '/ums/w/company/login',
            apiName: '用户登录-企业平台',
        }, params, loading, headers)
    },
}
